<?php
include dirname(dirname(dirname(__FILE__))).'/admin-verify.php';
include dirname(dirname(__FILE__))."/functions.php";

if (checkInit()) {
	Init();
}else {
	if (!deleteCurrentDateInfo()) {
		echo "deleteCurrentDateInfo error";
		exit();
	}
	if (!addNewDateInfo()) {
		echo "addNewDateInfo error";
		exit();
	}
	if (!updateDateInfo()) {
		echo "updateDateInfo error";
		exit();	
	}
	
	
	
}
echo "更新成功";

?>